<#import "/spring.ftl" as spring />
<#import "../inspector-time-macros.ftl" as imacro />
<html>
<head>
	<title>Inspector Company</title>
</head>
<body>
<div id="content">

<h1>INSPECTOR COMPANY</h1>

<p>Please edit any of the fields below and click "SAVE"</p>

<@imacro.listErrors "inspectorCompany" />

<form action="editInspectorCompany.html" method="post">
	<@spring.formHiddenInput "inspectorCompany.id" />
	
	<table class="formTable twoColForm">
		<tr>
			<th><span class="required">*</span>Company Name</th>
			<td><@spring.formInput "inspectorCompany.name", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>Address 1</th>
			<td><@spring.formInput "inspectorCompany.address.street1", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th>Address 2</th>
			<td><@spring.formInput "inspectorCompany.address.street2", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>City</th>
			<td><@spring.formInput "inspectorCompany.address.city", 'size="25", maxlength="100"'/></td>
		</tr>
		<tr>
			<th><span class="required">*</span>State</th>
			<td>
				<@spring.bind "inspectorCompany.address.state" />
				<select id="${spring.status.expression}" name="${spring.status.expression}">
					<option value=""<@spring.checkSelected ""/>>-- SELECT STATE --</option>
						<#list states as option>
							<option value="${option}"<@spring.checkSelected option/>>${option.longName}</option>
						</#list>
				</select>
			</td>
		</tr>
		<tr>
			<th><span class="required">*</span>Zip</th>
			<td><@spring.formInput "inspectorCompany.address.zipCode", 'size="10", maxlength="5"'/></td>
		</tr>
		<tr>
			<th>Company Phone</th>
			<td><@spring.formInput "inspectorCompany.companyPhone", 'size="15", maxlength="20"'/></td>
		</tr>
		<tr>
			<td colspan="2" class="buttons">
				<input type="submit" value="SAVE" class="formButton" />
				<a href="settings.html" class="formLink">-CANCEL-</a>
			</td>
		</tr>
	</table>
	
	<div class="requiredText">*INDICATES REQUIRED FIELDS</div>

</form>

</div>
</body>
</html>
